package com.atguigu.guli.service.expriton;


import com.atguigu.guli.service.result.ResultCodeEnum;
import lombok.Getter;

@Getter
public class GuliException extends RuntimeException{
    private ResultCodeEnum codeEnum;

    public GuliException(ResultCodeEnum codeEnum) {
        super(codeEnum.getMessage());// 将错误信息设置给父类中定义的message属性
        this.codeEnum = codeEnum;
    }
}
